package com.hncc.sms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hncc.sms.mapper.SmsDeptCatalogMapper;
import com.hncc.sms.domain.SmsDeptCatalog;
import com.hncc.sms.service.ISmsDeptCatalogService;
import javax.annotation.Resource;

/**
 * 科室分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-08-13
 */
@Service
public class SmsDeptCatalogServiceImpl implements ISmsDeptCatalogService 
{
    @Resource
    private SmsDeptCatalogMapper smsDeptCatalogMapper;

    /**
     * 查询科室分类
     * 
     * @param id 科室分类ID
     * @return 科室分类
     */
    @Override
    public SmsDeptCatalog selectSmsDeptCatalogById(Long id)
    {
        return smsDeptCatalogMapper.selectSmsDeptCatalogById(id);
    }

    /**
     * 查询科室分类列表
     * 
     * @param smsDeptCatalog 科室分类
     * @return 科室分类
     */
    @Override
    public List<SmsDeptCatalog> selectSmsDeptCatalogList(SmsDeptCatalog smsDeptCatalog)
    {
        return smsDeptCatalogMapper.selectSmsDeptCatalogList(smsDeptCatalog);
    }

    /**
     * 新增科室分类
     * 
     * @param smsDeptCatalog 科室分类
     * @return 结果
     */
    @Override
    public int insertSmsDeptCatalog(SmsDeptCatalog smsDeptCatalog)
    {
        return smsDeptCatalogMapper.insertSmsDeptCatalog(smsDeptCatalog);
    }

    /**
     * 修改科室分类
     * 
     * @param smsDeptCatalog 科室分类
     * @return 结果
     */
    @Override
    public int updateSmsDeptCatalog(SmsDeptCatalog smsDeptCatalog)
    {
        return smsDeptCatalogMapper.updateSmsDeptCatalog(smsDeptCatalog);
    }

    /**
     * 批量删除科室分类
     * 
     * @param ids 需要删除的科室分类ID
     * @return 结果
     */
    @Override
    public int deleteSmsDeptCatalogByIds(Long[] ids)
    {
        return smsDeptCatalogMapper.deleteSmsDeptCatalogByIds(ids);
    }

    /**
     * 删除科室分类信息
     * 
     * @param id 科室分类ID
     * @return 结果
     */
    @Override
    public int deleteSmsDeptCatalogById(Long id)
    {
        return smsDeptCatalogMapper.deleteSmsDeptCatalogById(id);
    }
}
